package com.janwen.j2se.regex;

import org.apache.log4j.Logger;

public class RegexBasic {

	private static final Logger logger = Logger.getLogger(RegexBasic.class);
	public static void splitStr(String str){
		String[] back = str.split("\\|");
		for(int i=0;i<back.length;i++){
			logger.info(back[i]);
		}
	}
	
	
	public static void check(String input,String regex){
		logger.info(input.matches(regex));
	}
}
